/**
 * @file StdoutLogApperder.cpp
 * @author  haifeng (haifengxiao@icloud.com)
 * @brief
 * @version 0.1
 * @date 2021-07-06
 *
 * @copyright Copyright (c) 2021
 *
 */

#include "StdoutLogAppender.h"

namespace Chen {
    namespace Log {

        void StdoutLogAppender::log(std::shared_ptr<Logger> logger
            , LogLevel::Level level, LogEvent::ptr event) {
            if (level >= m_level) {
                m_formatter->format(std::cout, logger, level, event);
            }
        }

    }//namespace Log
}//namespace Chen